package com.kygeng.dataupdate.controller;

import com.kygeng.dataupdate.service.CompanyDataFullIssuanceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

/**
 * @Title: DataSyncController
 * @Author: kygeng
 * @Package: com.kygeng.datamonitoring.controller
 * @Date: 2024/8/31 9:04
 * @Description: 数据同步
 */
@Controller
@RequestMapping(path = "/companyIndex")
@ResponseBody
public class DataSyncController {

    @Autowired
    private CompanyDataFullIssuanceService companyDataFullIssuanceService;

    /**
     * 全量下发 company索引相关数据
     */
    @RequestMapping(path = "/fullIssuance", method = RequestMethod.POST)
    private void companyIndexFullIssuance() {
        companyDataFullIssuanceService.companyIndexFullIssuance();
    }


}
